/**
*	@class IndexBuffer
*
*	@brief Class to wrap a dx10 index buffer
*
*	@author William McVicar
*/

#pragma once

#ifndef __DX10INDEXBUFFER_H_INCLUDED__
#define __DX10INDEXBUFFER_H_INCLUDED__
#ifdef DX10

//  Library Includes

//  Local Includes
#include "IndexBufferBase.h"
#include <d3d10.h>
#include <D3DX10.h>

//  Macros

//  Forward Declarations

//  Types

//  Constants

//  Prototypes

namespace Protein
{

class IndexBuffer
{
	//Member Functions
public:

	IndexBuffer( const IndexBufferBase* _pBuffer );
	~IndexBuffer();

	ID3D10Buffer* Data() const { return m_pIndexBuffer; }

	void Enable();
	void Disable();

protected: 

private: 

	//Member Variables
public:

protected: 

private: 

	ID3D10Buffer*		m_pIndexBuffer;
	u32					m_uiOffset;

};

}

#endif //DX10
#endif //__DX10INDEXBUFFER_H_INCLUDED__
